import React from 'react'
class TestHMR extends React.Component {
  state = {
    count: 0
  }
  render() {
    return <span onClick={() => this.setState(state => ++state.count)}>先点我，再改外层代码，数字状态被保留下来。{this.state.count}</span>
  }
}

export { TestHMR }